{% from 'bootstrap5/form.html' import render_form %}
{% extends 'base.html' %}

{% block css %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link rel="stylesheet" href="https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/docs-app/css/dist/mdb5/standard/core.min.css">
{% endblock %}
{% block title %}FLASKY博客{% endblock %}

{% block page_content %}

<div class="page-header"> 
    <div> 
        {% if current_user.can(Permission.WRITE) %} 
        {{ render_form(form) }} 
        {% endif %} 
    </div> 
    <ul class="posts"> 
        {% include "_posts.html" %}
    </ul> 
</div> 


<p>北京时间： {{ moment(current_time).format('LLL') }}.</p> 
<p>当前是 {{ moment(current_time).fromNow(refresh=True) }}</p>


{% endblock %}
    
    

